package models;

import java.util.Date;
import javax.persistence.Entity;
import play.data.validation.MaxSize;
import play.data.validation.MinSize;
import play.data.validation.Required;
import play.db.jpa.Model;
import play.libs.Time;

/**
 *
 * @author Luis Antonio Ramirez Martinez
 */
@Entity
public class Evento extends Model{
    @Required
    @MaxSize(50)
    @MinSize(3)
    public String evento;
    @Required
    public Date fecha;
    @Required
    public Date hora;
    @Required
    public String lugar;
    @Required
    public Double latitud;
    @Required
    public Double longitud;
    

    public Evento() {
    }

    public Evento(String evento, Date fecha, Date hora, String lugar, Double latitud, Double longitud) {
        this.evento = evento;
        this.fecha = fecha;
        this.hora = hora;
        this.lugar = lugar;
        this.latitud = latitud;
        this.longitud = longitud;
    }

    
}
